package com.wei.violet.utils

class HandleString (val str:String){

    def toIntPlus={


      try {
        this.str.toInt
      } catch {
        case _:Exception=>0
      }


    }

  def toDoublePlus={

    try {
      this.str.toDouble
    } catch {
      case  _:Exception=>0d
    }
  }




}
object HandleString{

  implicit def StrCrossOver(str:String)=new  HandleString(str)

}
